package thread;

/**
 * Created with IntelliJ IDEA
 * Description
 * User：chenshu
 * Date：2024-05-12
 * Time：23:27
 */
public class Demo15 {
    public static void main(String[] args) throws InterruptedException {
        Object obj = new Object();
        synchronized (obj) {
            System.out.println("wait之前");
            obj.wait();
            System.out.println("wait之后");
        }
    }
}
